﻿<?xml version="1.0" encoding="utf-8" ?>
<Recipe Name="CreateEntity" Bound="false" xmlns="http://schemas.microsoft.com/pag/gax-core" >
  <xi:include href="Include/TypeAlias.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
  <Caption>(Re)Create 'Entity' class </Caption>
  <HostData>
    <!--<Icon ID="500"/>-->
    <Icon File="img/ProjIcon.ico"/>
    <CommandBar Name="Project" />
    <CommandBar Name="Folder"/>
    <CommandBar Name="Item" />
    <CommandBar Name="Project Add"/>
  </HostData>

  <!-- Arguments -->
  <xi:include href="Include/03/Arguments.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />

  <GatheringServiceData>
    <Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">
      <Pages>
        <Page>
          <Title>(Re)Creates Entity (with possibly 3 properties) and its searched object</Title>
          <Fields>
            <Field ValueName="EntityName" Label="Class Name" />
            <Field ValueName="Property1" Label="Property (Code) - if provided, GetDomainObjectSignature() returns its value "  />
            <Field ValueName="Property2" Label="Property (Name) - if provided, ToDisplay() return its value "  />
            <Field ValueName="Property3" Label="Property  ... " />
            <Field ValueName="Namespace" Label="Namespace"  />
              <Field ValueName="EntityBase" Label="!ADVANCED: Name of another 'abstract' entity to be used as a base class (except Codelist). Expects that there is some generic abstract Entity (similar to CodeList) providing some base operations"  />

          </Fields>
      </Page>

      <Page Type="ProjectBase.Guidance.CustomWizardPages.EntityTypePage,ProjectBase.Guidance">
          <Title>Standard persitent, CodeList, light ICodeList, Tracked</Title>
      </Page>
        <Page>
          <Title>(Do not change these settings)</Title>
          <Fields>
            <Field ValueName="IsOnlyMVC" Label="Model, Controller and View without Entity (e.g. Home, Reports)" ReadOnly="true"  />
          </Fields>
        </Page>
      </Pages>
    </Wizard>
  </GatheringServiceData>
  <Actions CoordinatorServiceType="ActionCoordinator" >

    <xi:include href="Include/01/01GenerateEntity.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
    <xi:include href="Include/01/01AddEntityClass.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
    <xi:include href="Include/01/01GenerateEntityFilter.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
    <xi:include href="Include/01/01AddFilterClass.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />

  </Actions>
</Recipe>
